package com.cup.common.mail;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

/**
 *  a.邮箱参数
 */
public class MailAuthenticator extends Authenticator{   
	
    String userName=null;   
    String password=null;   
        
    public MailAuthenticator(){   
    }
    
    public MailAuthenticator(String username, String password) {    
        this.userName = username;    
        this.password = password;    
    }
    
    protected PasswordAuthentication getPasswordAuthentication(){   
        return new PasswordAuthentication(userName, password);   
    }   
}